<!--
 * @Author: dazy dazy916@126.com
 * @Date: 2025-09-19 15:30:32
 * @LastEditors: dazy dazy916@126.com
 * @LastEditTime: 2025-09-22 12:47:39
 * @FilePath: \H5\src\components\topNav.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<script setup>
import { reactive, ref, onMounted, getCurrentInstance, watch } from 'vue'
import { useRoute, useRouter } from 'vue-router'
const { proxy: { $http } } = getCurrentInstance()
const route = useRoute()
const router = useRouter()
const dataVal = reactive({})
const loginType = ref(null)
const props = defineProps({
  identity: {
    type: String,
    default: null,
  }
})

const schoolName = ref("重庆谢家湾学校")

onMounted(() => {
  console.info(props)
 })
</script>
<template>
  <div class="d-flex justify-content-end headerbox pl-2 pr-2 ">
    <img src="@/assets/img/top-logo.png" alt="" class="logo">
  </div>
  <!-- <div class="d-flex space-around align-items-center headerbox mt-1">
    <div class="d-flex align-items-center bg-white pl-2 pr-2 ">
      <img src="@/assets/img/top-logo.png" alt="" class="logo">
      <h2> {{ schoolName }}</h2>
    </div>
    <div class="d-flex align-items-center">
      {{ props.identity === 'teachIndex' ? '教师端' : '学生端' }}
    </div>
  </div> -->


</template>
<style scoped lang='scss'>
.logo {
  width: 100%;
  height: 80px;
  object-fit: contain;
}
</style>